import request from '@/utils/request'
// 客户用户登录
export const loginUser = (form)=>
	request({
		url : '/auth/client_token',
		method:'post',
		params:{
			loginName:form.loginName,
			password:form.password,
		} 
	})
// 根据当前用户获取可访问的获取产品列表	
export const productList = (search)=>
	request({
		url : '/op/product/get_product_list_by_current_user',
		method:'get',
		params:{
			pageSize:search.pageSize,
			pageNo:search.pageNo,
			type:search.type,
			isRecommend:search.isRecommend,
			keyWord:search.keyWord
		} 
	})
// 获取指定的产品	
export const productDetail = (code)=>
	request({
		url : '/op/product/get_product',
		method:'get',
		params:{
			code
		} 
	})

	//根据当前用户获取可访问的资产列表
export const getPropertyList = (search)=>
	request({
		url : '/op/assets/get_assets_list_by_current_user',
		method:'get',
		params:{
			pageNo:search.pageNo,
			pageSize:search.pageSize,
			type:search.type
		} 
	})
// 获取指定的资产	
export const propertyDetail = (code)=>
	request({
		url : '/op/assets/get_assets',
		method:'get',
		params:{
			code
		} 
	})